package com.mikey.emoji.exception;

public enum YunzhiMallExceptionEnum {

    SYSTEM_ERROR(10003,"系统异常"),
    FILE_UPLOAD_ERROR(10004,"文件上传失败"),
    REQUEST_PARAM_ERROR(10005,"参数不合法"),
    ADD_ERROR(10006,"添加失败"),
    SELECT_ERROR(10007,"查询失败"),
    UPDATE_ERROR(10008,"更新失败 "),
    DELETE_ERROR(10009,"删除失败");


    //异常编码
    private Integer code;
    //异常描述信息
    private String msg;

    YunzhiMallExceptionEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
